<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>검정색 달력</title>
</head>
<body>

<script>
var mydate=new Date()
var year=mydate.getYear()

if (year < 1000)
    year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()+1

if (month<10)
    month="0"+month

var daym=mydate.getDate()
if (daym<10)
    daym="0"+daym
    document.write("<b>"+year+"/"+month+"/"+daym+"</b>")

</script> 